<template>
	<view>
		<u-cell-group>
			<!-- 维修人 -->
			<view v-if="!isSow">
				<u-cell-item title="抢单/派单" @click="distribute">
					<u-badge type="error" style="margin: 6rpx 50rpx 0 0;" count="1"></u-badge>
				</u-cell-item>
				<u-cell-item title="故障诊断" @click="fault">
					<u-badge type="error" style="margin: 6rpx 50rpx 0 0;" count="22"></u-badge>
				</u-cell-item>
				<u-cell-item title="待执行工单" @click="implement">
					<u-badge type="error" style="margin: 6rpx 50rpx 0 0;" count="3"></u-badge>
				</u-cell-item>
				<u-cell-item title="进行中工单" @click="conduct">
					<u-badge type="error" style="margin: 6rpx 50rpx 0 0;" count="18"></u-badge>
				</u-cell-item>
				<u-cell-item title="已完成工单" @click="complete">
					<u-badge type="error" style="margin: 6rpx 50rpx 0 0;" count="5"></u-badge>
				</u-cell-item>
			</view>
			<!-- 设备管理员 -->
			<u-cell-item title="工单发料" @click="indirect">
				<u-badge type="error" style="margin: 6rpx 50rpx 0 0;" count="25"></u-badge>
			</u-cell-item>
			<!-- 验收人 -->
			<u-cell-item title="待验收工单" @click="wait"></u-cell-item>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isSow: false,
				isSown: false
			};
		},
		methods: {
			distribute() {
				uni.navigateTo({
					url: 'pages/Workorder/Distribute/oddnumbers'
				});
			},
			fault() {
				uni.navigateTo({
					url: 'pages/Workorder/Diagnosis/faultdiagnosis'
				});
			},
			implement() {
				uni.navigateTo({
					url: 'pages/Workorder/Implement/execute'
				});
			},
			conduct() {
				uni.navigateTo({
					url: 'pages/Workorder/Conduct/Underway'
				});
			},
			complete() {
				uni.navigateTo({
					url: 'pages/Workorder/Complete/accomplish'
				});
			},
			indirect() {
				uni.navigateTo({
					url: 'pages/Workorder/Materials/indirect'
				});
			},
			wait() {
				uni.navigateTo({
					url: 'pages/Workorder/Awaiting/currency'
				});
			}
		}
	};
</script>

<style lang="scss" scoped>
</style>
